package com.neo.rabbit.many;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Component
public class NeoSender2
{
    @Autowired
    private AmqpTemplate rabbitTemplate;
    
    public void send(int i)
    {
        String context = "spirng boot neo queue" + " ****** " + i;
        log.info("Sender2 : " + context);
        this.rabbitTemplate.convertAndSend("neo", context);
    }
}